package com.sais.manage.boot.platform.dto;

import com.baomidou.mybatisplus.annotation.TableName;
import com.sais.common.dto.BaseDTO;
import com.sais.manage.boot.platform.entity.OrgInfo;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.BeanUtils;

/**
 * 宿舍管理系统-组织机构详情 DTO
 *
 * @author zhang
 * @date 2019/11/30
 **/
@TableName("platform_org_info")
@Data
@NoArgsConstructor
public class OrgInfoDTO extends BaseDTO {

    private String orgId;
    private String abbreviation;
    private String functional;
    private String leader;
    private String level;
    private String telephone;

    public OrgInfo convert() {
        OrgInfo orgInfo = new OrgInfo();
        BeanUtils.copyProperties(this, orgInfo);
        return orgInfo;
    }

}
